/* 整体布局容器 */
.layout-container {
  display: flex;
  width: 100%;
  height: 100vh;
  background-color: #fffefe;
  overflow: hidden;
}

/* 侧边栏容器 */
.sidebar-container {
  height: 100vh;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* 主内容区容器 */
.main-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: width 0.3s;
}

/* 头部样式 */
.elHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  background-color: #ffffff;
  flex-shrink: 0;
  padding: 0 20px;
  border-bottom: 1px solid #f0f0f0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fold-icon {
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.page-title {
  font-size: 16px;
  color: #1F2937;
  line-height: 50px;
}

.nameBox {
  display: flex;
  align-items: center;
  gap: 16px;
}

.el-dropdown-link {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
}

.username {
  font-size: 14px;
  color: #1F2937;
}

.setting-btn {
  cursor: pointer;
  font-size: 20px;
  color: #303133;
  display: flex;
  align-items: center;
}

.setting-btn:hover {
  color: #409EFF;
}

.drawer-content {
  padding: 20px;
}
.el-icon{
  width: 24px;
}
/* 标题过渡效果 */
.title-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

/* 菜单折叠时的标题样式 */
.el-menu--collapse + .title-transition {
  opacity: 0;
  width: 0;
}

/* 菜单项文字过渡 */
:deep(.el-menu-item),
:deep(.el-sub-menu__title) {
  transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 确保菜单项文字不会溢出 */
:deep(.el-menu-item span),
:deep(.el-sub-menu__title span) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

/* 菜单图标过渡 */
:deep(.el-menu-item .el-icon),
:deep(.el-sub-menu__title .el-icon) {
  transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}













